package com.yundasys.lab10designpattern.adapter;

import com.yundasys.lab10designpattern.adapter.controller.AnnotationController;

/**
 * @author jiangta
 * @version 1.0
 * @date 2021/5/14 11:32 上午
 */
public class AnnotationHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return (handler instanceof AnnotationController);
    }

    @Override
    public void handler(Object handler) {
        ((AnnotationController)handler).doAnnotationHandler();
    }
}
